package com.yxkj.syh.app.huarong.bean;

import java.util.HashMap;
import java.util.Map;

/**
 * 创建者：SYH
 * 时间：2020/5/26 18:51
 * 编辑者：SYH、
 * 标签：
 * 补充说明：
 */
public class SupplierAuth {
    //    0-未认证 1待审核 2-审核不通过 3-已认证 0:个人 1:个体户 2:企业
    private long accountId;//用户ID
    private int certifiedType;//证件类型
    private int status;//状态
    private String companyName;//企业名称
    private String rejectReason;//原因
    private String extendJson;//扩展字段
    private String idCardNumber;//身份证号码
    private String identityCardImgFront;//身份证正面
    private String identityCardImgReverse;//身份证反面
    private String identityCardImgInHand;//手持身份证
    private String license;//营业执照
    private String openingBankPermits;//用户许可证
    private String organizationCode;//组织机构代码证
    private String realname;//真实姓名
    private String taxRegistrationCertificate;//税务登记证

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getRejectReason() {
        return rejectReason;
    }

    public void setRejectReason(String rejectReason) {
        this.rejectReason = rejectReason;
    }

    public long getAccountId() {
        return accountId;
    }

    public void setAccountId(long accountId) {
        this.accountId = accountId;
    }

    public int getCertifiedType() {
        return certifiedType;
    }

    public void setCertifiedType(int certifiedType) {
        this.certifiedType = certifiedType;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getExtendJson() {
        return extendJson;
    }

    public void setExtendJson(String extendJson) {
        this.extendJson = extendJson;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }

    public String getIdentityCardImgFront() {
        return identityCardImgFront;
    }

    public void setIdentityCardImgFront(String identityCardImgFront) {
        this.identityCardImgFront = identityCardImgFront;
    }

    public String getIdentityCardImgReverse() {
        return identityCardImgReverse;
    }

    public void setIdentityCardImgReverse(String identityCardImgReverse) {
        this.identityCardImgReverse = identityCardImgReverse;
    }

    public String getIdentityCardImgInHand() {
        return identityCardImgInHand;
    }

    public void setIdentityCardImgInHand(String identityCardImgInHand) {
        this.identityCardImgInHand = identityCardImgInHand;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getOpeningBankPermits() {
        return openingBankPermits;
    }

    public void setOpeningBankPermits(String openingBankPermits) {
        this.openingBankPermits = openingBankPermits;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public void setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getTaxRegistrationCertificate() {
        return taxRegistrationCertificate;
    }

    public void setTaxRegistrationCertificate(String taxRegistrationCertificate) {
        this.taxRegistrationCertificate = taxRegistrationCertificate;
    }


    public Map<String, Object> getPerRequest(){
        Map<String, Object> pMap = new HashMap<>();
        pMap.put("accountId",accountId);
        pMap.put("certifiedType",certifiedType);
        pMap.put("idCardNumber",idCardNumber);
        pMap.put("realname",realname);
        pMap.put("identityCardImgFront",identityCardImgFront);
        pMap.put("identityCardImgReverse",identityCardImgReverse);
        pMap.put("identityCardImgInHand",identityCardImgInHand);
        return pMap;
    }

    public Map<String, Object> getSelRequest(){
        Map<String, Object> pMap = getPerRequest();
        pMap.put("license",license);
        pMap.put("openingBankPermits",openingBankPermits);
        pMap.put("companyName",companyName);
        return pMap;
    }

    public Map<String, Object> getBusRequest(){
        Map<String, Object> pMap = getPerRequest();
        pMap.put("license",license);
        pMap.put("taxRegistrationCertificate",taxRegistrationCertificate);
        pMap.put("organizationCode",organizationCode);
        pMap.put("openingBankPermits",openingBankPermits);
        pMap.put("companyName",companyName);
        return pMap;
    }



}
